package tianrun.ziguan.api.calculate.config.dto.request.common;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class InfoBody {

    @NotBlank(message = "tableName 不能为空！")
    private String tableName;
    @NotNull(message = "dataId 不能为空！")
    private Long dataId;

    public static InfoBody of(String tableName,Long dataId){
        InfoBody infoBody = new InfoBody();
        infoBody.setDataId(dataId);
        infoBody.setTableName(tableName);
        return infoBody;
    }
    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Long getDataId() {
        return dataId;
    }

    public void setDataId(Long dataId) {
        this.dataId = dataId;
    }
}
